var angular = require('angular');
var routes = require('./routes/visitor.routes');

var merchantService = require('./services/merchant.service');
var dishService = require('./services/dish.service');
var cartService = require('./services/cart.service');

var homeController = require('./controllers/home.controller');
var restaurantController = require('./controllers/restaurant.controller')

const moduleName = 'visitor';

angular.module(moduleName, [])
    .config(routes)
    .factory('merchantService',merchantService)
    .factory('dishService',dishService)
    .factory('cartService',cartService)
    .controller('homeController',homeController)
    .controller('restaurantController',restaurantController);

module.exports = moduleName;